JavaScript

A5.u.jsonexpand Method

Syntax

A5.u.json.expand(object,map)

Arguments

objectobjectarray

The object or array to expand.

mapobject

The property map object filled in by A5.u.json.compress.

Returns

expandedObjectobject

The expanded version of the passed in object.

Description

Expand a previously compressed object using a compressed object and map. See A5.u.json.compress.

Example

// cObj = [{a: 'Bob', b: 54},{a: 'Fred', b: 32}];
// map = {a: 'name', b: 'age'};
var obj = A5.u.json.expand(cObj,map);
// obj = [{name: 'Bob', age: 54},{name: 'Fred', age: 32}];